<?php

class Default_Controllers_Index extends Libs_Controller {

    public function __construct() {
        parent::__construct();
    }

    public function index() {
        $pro = new Default_Models_Product();
        $this->view->newProducts = $pro->getNewProducts(6);
        $this->view->catId1 = 32;
        $this->view->catName1 = $pro->getCatNameById(32);
        $this->view->catPro1 = $pro->getProductsByCat(32, 6);
        $this->view->catId2 = 36;
        $this->view->catName2 = $pro->getCatNameById(36);
        $this->view->catPro2 = $pro->getProductsByCat(36, 6);
        $this->view->render('index/index');
    }

}
